package org.bw.controller;


import org.bw.entity.Actor;
import org.bw.entity.Direct;
import org.bw.service.IActorService;
import org.bw.service.IDirectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hy.wu
 * @since 2022-07-12
 */
@RestController
@RequestMapping("/direct")
public class DirectController {
    @Autowired
    IDirectService directService;

    @RequestMapping("/list")
    public List<Direct> list(){
        return directService.list();
    }
}
